import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
// 不同模块 ./modules/ 引入
const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'Home',
    component: () => import('@/views/home/index.vue'),
    meta: { title: '首页' }
  },
  {
    path: '/login',
    component: () => import('@/views/login/index.vue'),
    meta: { title: '登录' }
  },
  {
    path: '/icon',
    component: () => import('@/views/iconList/index.vue'),
    meta: { title: '字体图标' }
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
